import {createVisibleEditorConfig} from '@/components/visibleEditor.utils';
export const configComponents = createVisibleEditorConfig();
import {ElButton, ElInput} from 'element-plus'
configComponents.registry('text', {
    label: '文本',
    preview: () => '预览时候文本',
    render: () => '渲染时候文本',
});

configComponents.registry('button', {
    label: '按钮',
    preview: () => <ElButton>预览按钮</ElButton>,
    render: () => <ElButton>渲染按钮</ElButton>,
});

configComponents.registry('input', {
    label: '输入框',
    preview: () => <ElInput>预览输入框</ElInput>,
    render: () => <ElInput>渲染输入框</ElInput>,
});